<?php
$this->load->view("header");
?>
<div id="main_content">
<div class="titlebar"><?= $title;?></div>
<?php
$this->load->view("bookiki/leftcolumn");
?>

<div id="book_list" class="book_list">
<h4>书易根据您发布的求购和出售图书信息，自动找到与你的需求最匹配的用户！</h4>
<?php
if($matched_user==null)
  echo "暂时没有找到匹配的用户。请尝试发布求购或出售图书信息。";
else
  foreach($matched_user as $user){
?>
      <table id="book_item" cellspacing="0" cellpadding="0" class="BookItem" onmouseover="this.style.background = &quot;#f2f3f4&quot;;" onmouseout="this.style.background = &quot;#ffffff&quot;;" >
      <tbody>
     <tr class="tr-margin"><td></tr>
      <tr>
      <td style="width:100px;">
      <a href="<?=site_url()?>/bookiki/automatch_detail?matched_user=<?=$user->user_id?>&go=yes"><?=$user->user_id?></a>
      </td>
      <td>可能想买我<?=$user->num_wanted?>本书</td>
      <td>可能想卖给我<?=$user->num_sale?>本书</td>
      </tr>
      </table>
<?php
 }
?>
</div> <!--end of book_list-->

<?php
$this->load->view("footer");
?>